﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ts_update.aspx.cs" Inherits="Xnjc_ts_update" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>投诉修改</title>
    <link href="../css/page.css" rel="stylesheet" type="text/css" />

    <script src="../ScriptFile/Calendar.js" type="text/javascript"></script>

    <script type="text/javascript" language="javascript">

        function check() {//
            if (document.forms["add"].s_tsman.value == "") {
                alert("投诉人不能为空");
                return false;

            } else if (document.forms['add'].Date_begin.value == "") {
                alert("投诉时间不能为空");
                return false;

            } else if (document.forms['add'].s_tsInfo.value == "") {
                alert("投诉内容不能为空");
                return false;
            } else {
                return true;

            }
        }
        function openwin() {
            window.open("Ajxx.aspx");
        }
        function sectorSelect(villageid) {
            arrayOfStrings = new Array("t", "tt");
            arrayOfStrings = villageid.split("+");

            document.add.s_tsiid.value = arrayOfStrings[0];
        }
   	   
    </script>

</head>
<body>
    <form name="add" method="post" onsubmit="return check()" runat="server">
    <table width="80%" border="0" align="center">
        <tr>
            <td>
                <div class="box_top_bar">
                    <div class="box_top_left">
                        <div class="box_top_right">
                            <div class="box_top_text">
                                投诉修改
                            </div>
                        </div>
                    </div>
                </div>
                <div class="box_middle">
                    <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="box_middle_tab">
                        <tr>
                            <td>
                                投诉人
                            </td>
                            <td align="left">
                                <div align="left">
                                    <input runat="server" name="s_tsman" type="text" id="s_tsman" size="30" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                时间
                            </td>
                            <td align="left">
                                <div align="left">
                                    <input runat="server" id="submitDate" type="text" readonly="readonly" onfocus="setday(this)" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                被投诉对象
                            </td>
                            <td align="left">
                                <div align="left">
                                    <input runat="server" name="s_tsobject" type="text" id="s_tsobject" size="30" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                投诉案件
                            </td>
                            <td align="left">
                                <div align="left">
                                    <input runat="server" name="s_tsiid" type="text" id="s_tsiid" checktype="txt" />
                                    <input name="Save" type="button" id="Save" value="..." onclick="openwin()" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                投诉内容
                            </td>
                            <td align="left">
                                <div align="left">
                                    <textarea runat="server" name="s_tsInfo" cols="55" rows="4" id="s_tsInfo"></textarea>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <div align="center">
                                    <asp:Button runat="server" ID="Button2" Cssclass="NewButton" Text="保存" OnClick="s_save_Click"
                                        OnClientClick="check()" />
                                    <input class="NewButton" type="button" value="返回" onclick='window.navigate("ts_query.aspx")' />
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>
    </form>
    <p align="left">
        &nbsp;</p>
</body>
</html>
